﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <style type="text/css">
        html, body
        {
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
        }
        #main
        {
            height: 100%;
            width: 100%;
        }
        #ribbon
        {
            height: 120px;
            width: 100%;
            background: #c00;
        }
        #content
        {
            background: #0c0;
            height: 100%;
            width: 100%;
        }
        #menu
        {
        }
    </style>
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">

        window.onload = ajustLayout;
        window.onresize = ajustLayout;

        function ajustLayout(e) {
            var height = (window.document.body.clientHeight);
            var ribbonHeight = $("#ribbon").css("height").replace("px", "");
            $("#content").css("height", (height - ribbonHeight));
            
        }
        
    </script>
</head>
<body>
    <div id="main">
        <div id="ribbon">
        </div>
        <div id="content">
            <div id="menu">
            </div>
        </div>
    </div>
</body>
</html>
